/*=+--+=#=+--     Unmanned Aerial System Management Software      --+=#=+--+=#*\
|          Copyright (C) 2011 Regents of the University of Colorado.           |
|                             All Rights Reserved.                             |

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.

            Jack Elston                       Cory Dixon                        
|           elstonj@colorado.edu              dixonc@colorado.edu              |
|                                                                              |
\*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*/

#ifndef _PLOT_TREE_H
#define _PLOT_TREE_H

#include "myStripChart.h"
#include "String.h"

typedef struct _DataSet 
{
	int   setNum;
	char *setNames[MAX_NUM_DATA_SETS];
	void *setPtr[MAX_NUM_DATA_SETS];
	int   setType[MAX_NUM_DATA_SETS];
	_DataSet() {
		setNum = 0;
	}
} DataSet;

GtkWidget *create_param_window();
void create_plot_window(String plotName, int setNum, char *setNames[], void * setPt[] = NULL, int setType[] = NULL);

String tree_parse( GtkTreeModel *model, GtkTreeIter &iter, DataSet &data  );

void plot_button_clicked (GtkWidget *w, gpointer user_data);
gboolean plot_window_destroy(GtkWidget * widget, GdkEventKey * event, gpointer user_data);

#endif// _PLOT_TREE_H

